x86: also zap secondary time area handles during soft reset
authorJan Beulich <jbeulich@suse.com>
Thu, 27 Oct 2022 09:49:09 +0000 (11:49 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 27 Oct 2022 09:49:09 +0000 (11:49 +0200)
commitb80d4f8d2ea6418e32fb4f20d1304ace6d6566e3
tree51c820f819fc8c86471f11201f63fab31c02d7cd
parent2ca833688abd4ce88f8eba06ee98c08d35d2d486
x86: also zap secondary time area handles during soft reset

Just like domain_soft_reset() properly zaps runstate area handles, the
secondary time area ones also need discarding to prevent guest memory
corruption once the guest is re-started.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
xen/arch/x86/domain.c